import 'package:flutter/material.dart';

class FormWidget extends StatelessWidget {
  const FormWidget({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: IconButton(
            onPressed: () => {Navigator.pop(context)},
            icon: const Icon(Icons.arrow_back)),
        title: const Text('Form表单'),
        centerTitle: true, // 标题居中显示
      ),
      body: const FormBodyWidget(),
    );
  }
}

class FormBodyWidget extends StatefulWidget {
  const FormBodyWidget({super.key});

  @override
  State<FormBodyWidget> createState() => _FormBodyWidgetState();
}

class _FormBodyWidgetState extends State<FormBodyWidget> {
  @override
  Widget build(BuildContext context) {
    return const Placeholder();
  }
}
